package com.jy.adscm.operation.lxcg.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 采购详情
 * </p>
 *
 * @author zyl
 * @since 2019-08-15
 */
public class LxcgTaskDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 物料名称
     */
    private String bomName;
    @TableField(exist = false)
    private LxcgMaterial bomNameName;
    /**
     * 型号
     */
    private String type;
    /**
     * 数量
     */
    private Float nums;
    /**
     * 单价
     */
    private Float price;
    /**
     * 总价
     */
    private Float total;
    /**
     * 计划到达时间
     */
    private Date planArriveTime;
    /**
     * 计划支付时间
     */
    private Date planPayTime;
    /**
     * 实际数量
     */
    private Float actNums;
    /**
     * 实际单价
     */
    private Float actPrice;
    /**
     * 实际总价
     */
    private Float actTotal;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 采购任务ID
     */
    private Long tid;

    /**
     * 计划下单时间
     */
    private Date planOrderTime;
    /**
     * 创建人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 备注
     */
    private String remark;
    /**
     * 到货时间
     */
    private Date arriveTime;
    /**
     * 库房人员
     */
    private String kfPerson;
    //已到货

    private  Integer  isArrive;

    public Integer getIsArrive() {
        return isArrive;
    }

    public void setIsArrive(Integer isArrive) {
        this.isArrive = isArrive;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public LxcgMaterial getBomNameName() {
        return bomNameName;
    }

    public void setBomNameName(LxcgMaterial bomNameName) {
        this.bomNameName = bomNameName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBomName() {
        return bomName;
    }

    public void setBomName(String bomName) {
        this.bomName = bomName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Float getTotal() {
        return total;
    }

    public void setTotal(Float total) {
        this.total = total;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getPlanArriveTime() {
        return planArriveTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setPlanArriveTime(Date planArriveTime) {
        this.planArriveTime = planArriveTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getPlanPayTime() {
        return planPayTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setPlanPayTime(Date planPayTime) {
        this.planPayTime = planPayTime;
    }

    public Float getNums() {
        return nums;
    }

    public void setNums(Float nums) {
        this.nums = nums;
    }

    public Float getActNums() {
        return actNums;
    }

    public void setActNums(Float actNums) {
        this.actNums = actNums;
    }

    public Float getActPrice() {
        return actPrice;
    }

    public void setActPrice(Float actPrice) {
        this.actPrice = actPrice;
    }

    public Float getActTotal() {
        return actTotal;
    }

    public void setActTotal(Float actTotal) {
        this.actTotal = actTotal;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getPlanOrderTime() {
        return planOrderTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setPlanOrderTime(Date planOrderTime) {
        this.planOrderTime = planOrderTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getArriveTime() {
        return arriveTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setArriveTime(Date arriveTime) {
        this.arriveTime = arriveTime;
    }

    public String getKfPerson() {
        return kfPerson;
    }

    public void setKfPerson(String kfPerson) {
        this.kfPerson = kfPerson;
    }

    @Override
    public String toString() {
        return "LxcgTaskDetail{" +
        "id=" + id +
        ", bomName=" + bomName +
        ", type=" + type +
        ", nums=" + nums +
        ", price=" + price +
        ", total=" + total +
        ", planArriveTime=" + planArriveTime +
        ", planPayTime=" + planPayTime +
        ", actNums=" + actNums +
        ", actPrice=" + actPrice +
        ", actTotal=" + actTotal +
        ", createTime=" + createTime +
        ", tid=" + tid +
        ", planOrderTime=" + planOrderTime +
        ", creator=" + creator +
        ", remark=" + remark +
        ", arriveTime=" + arriveTime +
        ", kfPerson=" + kfPerson +
        "}";
    }
}
